import { createRouter,createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
        path:'/',
        redirect:'/login'//最开始执行的页面
    },
    {
        //注册
        path:'/login',
        component:()=>import('../views/LoginView.vue')
    },
    {
      //登录
      path:'/logon',
      component:()=>import('../views/LogonView.vue')
    }
  ]
})

export default router